package com.pac.weixin.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pac.hospital.bean.HospitalBean;
import com.pac.hospital.service.HospitalService;

/**
 * <一句话功能简述> <功能详细描述>
 * 
 * @author lujun.chen
 * @version [版本号, 2015年3月1日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Controller
@Scope("prototype")
@RequestMapping("/weixin/hospital")
public class WxHospitalController {

	@Autowired
	private HospitalService hospitalService;

	/**
	 * 微信查询医院信息
	 * 
	 * @param hospitalBean
	 * @return
	 * @see [类、类#方法、类#成员]
	 */
	@RequestMapping("/list")
	@ResponseBody
	public List<HospitalBean> queryHostpital(HospitalBean hospitalBean) {
		return hospitalService.queryHospital(hospitalBean);
	}

}
